package com.itheima.a05test;

import java.util.ArrayList;
import java.util.List;

public class Test1 {
    public static void main(String[] args) {
        ArrayList<PersianCat> list1=new ArrayList<>();
        ArrayList<LiJHuaCat> list2=new ArrayList<>();

        keepPet(list1);
        keepPet(list2);
    }
    //只能养猫不能养狗
    public static void keepPet(ArrayList<? extends Cat> list){

    }
}
